<%--
  Created by IntelliJ IDEA.
  User: Tang'ya'kang
  Date: 2023/5/11
  Time: 20:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>AddBook</title>
    <style>
        div{
            position: relative;
        }
    </style>
</head>
<%@ include file="head.jsp"%>
<body>
<div class="card">
    <div class="card-body">
        <h5 class="card-title" align="center">增加图书</h5>
        <div class="card-body">
            <form action="./manage/bookServlet?action=AddBook" method="post" enctype="multipart/form-data">
                <input type="hidden" name="action" value="AddBook">
                <input type="hidden" name="PageTotal" value=${param.PageTocal}>
                <input type="hidden" name="merchant_id" value=${param.merchant_id}>
                <input type="hidden" name="user_name" value=${param.user_name}>
                <input type="hidden" name="count" value=${param.count}>
                <div class="form-group" align="center" style="display: flex;align-items: center;justify-content: center;left: -24px">
                    <label> 图 书 名 称 ：</label>
                    <input type="text" class="form-control" id="bookname" name="bookname" style="width: 400px;height: 50px">
                </div>
                <div class="form-group" align="center" style="display: flex;align-items: center;justify-content: center;left: -4px">
                    <label> 作 者 ：</label>
                    <input type="text" class="form-control" id="username" name="username" style="width: 400px;height: 50px">
                </div>
                <div class="form-group" align="center" style="display: flex;align-items: center;justify-content: center;left: -4px">
                    <label> 价 格 ：</label>
                    <input type="text" class="form-control" id="price" name="price" style="width: 400px;height: 50px">
                </div>
                <div class="form-group" align="center" style="display: flex;align-items: center;justify-content: center;left: -4px">
                    <label> 销 量 ：</label>
                    <input type="text" class="form-control" id="sales" name="sales" style="width: 400px;height: 50px">
                </div>
                <div class="form-group" align="center">
                    <div class="form-group" align="center" style="display: flex;align-items: center;justify-content: center;left: -4px">
                        <label> 库 存 ：</label>
                    <input type="text" class="form-control" id="stock" name="stock" style="width: 400px;height: 50px">
                    </div>
                    <div class="form-group" align="center" style="display: flex;align-items: center;justify-content: center;left: -24px">
                        <label> 封 面 照 片 ：</label>
                    <input type="file" class="form-control" name="bookImage" style="width: 400px;height: 50px">
                    </div>
                </div>
                <center><button type="submit" class="btn btn-primary" style="position: relative;width: 400px;left: 25px">增 添</button></center>
            </form>
        </div>

    </div>
    <%@ include file="/html/Foot.jsp"%>
</div>
</body>
</html>
